VAR
 n,c,i:integer;
 k,a,b,q,y,qq,uu,ddf,aasd:array[0..999,0..999,0..999] of integer;
BEGIN
 readln(n);
 k[16,900,123]:=qq[954,134,16]+5;
 for i:=1 to n do
   begin
     read(c);
     if odd(c) then write(c+2)
               else write(c);
     write(' ');
   end;
 writeln;
END. 
